{extend name="public/base"}
{block name="style"}{/block}
{block name="breadcrumb" title="当前位置"}{/block}
//正文区域
{block name="body"}
<div class="page-container ">
<!--    <div class="text-c">
        <form class="Huiform" method="post" action="" target="_self">
            <input type="text" class="input-text" style="width:250px" placeholder="权限名称" id="" name="">
            <button type="submit" class="btn btn-success" id="" name=""><i class="Hui-iconfont">&#xe665;</i> 搜权限节点</button>
        </form>
    </div>-->
    <div class="cl pd-5 bg-1 bk-gray mb-10">


<div style="line-height:28px; padding:5px;">
    <b>用章流程：</b><br/>
        
        <b style=" color:#f11;">1.选择用章流程</b> &nbsp;&nbsp; -> &nbsp;&nbsp; 
        2.提交申请信息 &nbsp;&nbsp; -> &nbsp;&nbsp; 
        3.等待审核 &nbsp;&nbsp; -> &nbsp;&nbsp; 
        4.盖章操作 
        <br/>

        <b>当前操作：</b><b style=" color:#f11;">1.选择用章流程</b>


</div>


    

    
    </div>
    <form class="Huiform" method="get" action="" id="listForm">
    <table class="table table-border table-bordered table-bg table-tr-hover">
        <thead>
            <tr>
                <th width="25" style="display:none">
                    <input type="checkbox" name="" value="">
                </th>
                <th width="40"  class="text-c">ID</th>
                <th ><b style=" color:#f11;">选择用章流程</b></th>

                <th >印章</th>
                <th >印章机位置</th>
                <th >状态</th>

                <th width="300">操作</th>
            </tr>
        </thead>
        <tbody>
{volist name="list" id="vo"}
            <tr>
                
                <td  style="display:none" ><input type="checkbox" value="{$vo.id}" name="id[]">{$vo.id}</td>
                <td  class="text-c">{$vo.id}</td>
                <td>{$vo.name}</td>

                <td title="[ {$vo.seal_id} ] {$vo.seal.seal_name} ">{$vo.seal.seal_name} </td>
                <td>{$vo.seal.equipment.equipment_address} </td>
                <td>{$vo.status_text}</td>

                <td>

                <button onClick="list_add({$vo.id})" type="button" class="btn btn-secondary  radius" title=" 创建申请">
                    <i class="Hui-iconfont">&#xe600;</i> 创建申请
                </button>
                &nbsp;&nbsp;&nbsp;
                <button onClick="list_processinfo({$vo.id})" type="button" class="btn btn-success   radius" title=" 创建申请">
                    <i class="Hui-iconfont">&#xe720;</i> 查看流程信息
                </button>



                </td>
{/volist}
            </tr>
        </tbody>
    </table>
    </form>
    <div class="pagination-wraper cl">
        {$list->render()}
    </div>
</div>
{/block}
<!--请在下方写此页面业务相关的脚本-->
//-----------------------------------------------------------------------------------------------
{block name="script"}

<script type="text/javascript">


var $listForm = $('#listForm'); // form#listForm
var add_url ='{:url('edit')}';



function list_add(id){
    var title = '修改数据';
    var url =  '{:url('edit')}?process_id=' + id ; 
    //layer_show_full(title,url);
    window.location.href = url;
}
/*行内 编辑*/
function list_processinfo(id){
    var title = '查看流程信息';
    var url = '{:url('processinfo')}?process_id=' + id ; 
    layer_show(title,url, {area: ['800px', '700px']} );

}


$(function(){
    //双击修改
    $listForm.find('tbody tr').on('dblclick',function(e){
        console.log( e.target.nodeName );
        if(e.target.nodeName == 'INPUT' ){return false;}
        if(e.target.nodeName == 'BUTTON' ){return false;}
        if(e.target.nodeName == 'A' ){return false;}
        var id = $(this).find('[name^=id]').val();
        list_add(id);
    });

});//$(function(){



</script>

<style>
	

	
</style>



{/block}{//---------------------------------------------------------------------------}